home *** CD-ROM | disk | FTP | other *** search
/ Aminet 49 / Aminet 49 (2002)(GTI - Schatztruhe)[!][Jun 2002].iso / Aminet / util / boot / ShellUpdate.lha / Install < prev    next >
Encoding:
Text File  |  2002-04-07  |  2.4 KB  |  75 lines

  1. ;
  2. ; A tiny little shell script to install the shell-update
  3. ;
  4. version Shell VERSION 45 >NIL:
  5. if warn
  6.     echo "You MUST have BB2 installed on your system."
  7.     skip Exit
  8. endif
  9. ;
  10. ;
  11. ExtractModule FROM "DEVS:AmigaOS ROM Update" Module 19 TO RAM:Shell-Seg
  12. spatch -oRAM:Shell-Seg.new -pShell.pch RAM:Shell-Seg
  13. copy RAM:Shell-Seg.new to L:Shell-Seg
  14. copy LoadModule to C:
  15.  
  16. if $?EDITOR eq 1
  17.     $EDITOR S:Startup-Sequence &
  18. else
  19.     ed S:Startup-Sequence &
  20. endif
  21. more <<EndInstruction
  22.     Instructions for editing the Startup-Sequence
  23.  
  24. To complete the installation of the new shell, the startup-sequence
  25. must be modified using an editor. Please follow the instructions below
  26. closely.
  27.  
  28. 1) Locate the "SetPatch" command within the startup-sequence, place the
  29. cursor on the "S" of "SetPatch" and press <RETURN>. This will insert a new
  30. blank line ON TOP of SetPatch. Move the cursor upwards into this blank
  31. line and insert the following command:
  32.  
  33. LoadModule L:Shell-Seg NOREBOOT
  34.  
  35. In case you are using LoadModule already, please add L:Shell-Seg as one of
  36. its arguments. You may also load additional modules here, i.e. the Os 3.9 
  37. icon.library or the Os 3.9 workbench.library. Just give their full paths 
  38. as arguments to the LoadModule command. 
  39. *NOTE THAT IT IS IMPORTANT THAT LOADMODULE IS RUN BEFORE SETPATCH*. 
  40. With these modifications, the command line could look like this:
  41.  
  42. LoadModule L:Shell-Seg L:Ram-Handler LIBS:icon.library LIBS:workbench.library NOREBOOT
  43.  
  44. (This is one line, no line feed intended)
  45. The advantage of "LoadModule" is that the ROM modules loaded by
  46. this command can be protected from getting overwritten by means of 
  47. the "MuProtectModules" program of the same author (not included in this archive).
  48.  
  49.  
  50. 2) Locate the "SetPatch" command within the startup-sequence. Move the cursor
  51. behind "SetPatch", and add the command line option "SKIPROMMODULES shell"
  52. to the command. The setpatch command line should then read approximately as
  53. follows:
  54.  
  55. SetPatch SKIPROMMODULES shell >NIL:
  56.  
  57.  
  58. If you already have to skip parts of the update, as for example the scsi.device,
  59. the line should rather look like this:
  60.  
  61. SetPatch SKIPROMMODULES scsi.device,shell >NIL:
  62.  
  63. 3) Save the changes of the startup-sequence back. For "Ed", press first <ESC>,
  64. then <X>, then <RETURN>.
  65.  
  66.  
  67. 4) To make the changes active, a reboot is *NOT* enough. You should turn
  68. off the machine, wait for half a minute, and reboot. This will flush the
  69. RAM resident parts of the ROM-Updates mechanism.
  70. EndInstruction
  71. ;
  72. ;
  73. ;    we're done.
  74. Lab Exit:
  75.